package com.trs.publish.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.trs.publish.domain.OperationLog;
import com.trs.publish.repository.OperationLogRepository;

/**
 * @author jia.haihong
 *
 */
@Service
@Transactional
public class OperationLogService{
	
	@Autowired
	private OperationLogRepository operationLogRepository;

	public void batchInsert(List list) {
		operationLogRepository.batchInsert(list);
	}

	public List selectAll(OperationLog operationLog) {
		// TODO Auto-generated method stub
		return operationLogRepository.selectAll(operationLog);
	}

	public OperationLog selectone(Long id) {
		// TODO Auto-generated method stub
		return operationLogRepository.selectone(id);
	}

}
